package com.wh.springbootshiro.service;

import com.wh.springbootshiro.mapper.UserMapper;
import com.wh.springbootshiro.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Auther: HuiEr
 * @Date: 2020/3/3 18:51
 * @Description
 */
@Service
@Transactional
public class UserService implements IUserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findUserByName(String username) {
        return userMapper.findUserByName(username);
    }
}
